package com.situ.studentmanagement.dao;

import com.situ.studentmanagement.model.CheckInfo;
import com.situ.studentmanagement.model.Student;

import java.util.Date;
import java.util.List;

/**
 * Created by niugao on 6/12/2016.
 */
public interface StudentMapper {
    List<Student> getAllStudent();
    Student login(String name, String password);
    Student getStudentById(int id);
    void setHeadImgById(int student_id,String img_file);
    void change(int student_id, String name, String password, String phone, String email, int sex,String address, Integer class_id);
    int StudentRegister(Student student);

     void setLoginCheckinTime(int id, String s);

    void deleteStudentById(int id);

    void setStudentById(int modifyID, String name, String password, String phone, String email, int sex, String address, int class_id);

    void setLoginCheckoutTime(int student_id,int id, String time);

    List<CheckInfo> getCheckInfosAfterTime(String timeStr);

    List<CheckInfo> getCheckInfosFromTimeToTime(String classBeginTimeStr, String absenceTimeStr);

    List<CheckInfo> getNoCheckInfosFromTimeToTime(String classBeginTimeStr, String nowStr);

}
